package com.xg.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xg.sys.entity.SysUserRole;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户与角色对应关系 Mapper 接口
 * </p>
 *
 * @author ChenLiang
 * @since 2019-04-17
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    Set<Long> getRolesByUserId(Long userId);


    List<Long> queryRoleIdList(Long id);

    int deleteBatch(Long[] id);
}
